package jwr;

import java.util.ArrayList;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class NullContainerEx extends JFrame{
	public NullContainerEx() {
		setTitle("Null Container Sample");
		setSize(400,300);
		setDefaultCloseOperation(this.EXIT_ON_CLOSE);
		setVisible(true);
		
		setLayout(null);
		getContentPane();
		JLabel jl = new JLabel("Hello, Press Buttons");
		jl.setLocation(130, 50);
		jl.setSize(200, 20);
		add(jl);
		int x = 20, y = 20;
		JButton b;
		for(int i = 1; i <= 9; i++){
			b = new JButton(Integer.toString(i));
			b.setLocation(i*15, i*15);
			b.setSize(50, 20);
			add(b);
		}
		
	}
	public static void main(String[] args) {
		new NullContainerEx();
	}

}
